package afcp.alumni.file;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

import net.sourceforge.stripes.action.Message;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.poi.ss.formula.eval.NotImplementedException;
import org.springframework.stereotype.Component;

import afcp.alumni.service.FileUploadService;

@Component("CsvFileUploadService")
public class CsvFileUploadService implements FileUploadService {
	
	private static final Log logger = LogFactory.getLog(CsvFileUploadService.class);

	@Override
	public void handle(InputStream is, AlumniFile file, List<Message> failures)
			throws IncorrectHeaderException, IOException {
		logger.info("CsvFileUploadService : read file and add members.");
		// TODO implement me
		throw new NotImplementedException("CsvFileUploadService is not "
				+ "implemented yet. An old implementation is available on "
				+ "project (cf CsvReader), but not adapted yet.");
	}
}
